<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <title>广告</title>
  </head>
  <body>
    <img src="img/background1.png" />
    <script>
      var img = document.querySelector("img");
      //5秒后关闭
      setTimeout(function () {
        img.style.display = "none";
      }, 5000);
    </script>
  </body>
</html>
